home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
050
/
qwrite11.arc
/
GOTORC.INC
next >
Wrap
Text File
|
1986-10-18
|
673b
|
15 lines
{ This is the inverse of Turbo's GotoXY procedure and it's even a tad
faster. }
procedure GotoRC (Row, Col: Byte);
begin
Inline(
$B4/$02 { MOV AH,$02 ;Set AH = $02}
/$30/$FF { XOR BH,BH ;Set BH=0 for page}
/$8A/$76/<ROW { MOV DH,[BP+<Row] ;Move Row}
/$FE/$CE { DEC DH ;Convert to 0-24 range}
/$8A/$56/<COL { MOV DL,[BP+<Col] ;Move Col}
/$FE/$CA { DEC DL ;Convert to 0-79 range}
/$CD/$10 { INT $10 ;Set cursor position}
);
end;